package demo7;

public class SingleTonHungry {
    private static volatile SingleTonHungry instance=new SingleTonHungry();
    private SingleTonHungry(){}
    public static SingleTonHungry getInstance(){
        return instance;
    }
}
